﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAdmin.Application.Services.Dtos
{
    /// <summary>
    /// 
    /// </summary>
    public class MenusResponseDto
    {
        /// <summary>
        /// pk
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 父id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 路由地址
        /// </summary>
        public string Route { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        public bool Enabled { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTimeOffset CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public int ModifyBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTimeOffset? ModifyTime { get; set; }

        /// <summary>
        /// 父菜单节点数组
        /// </summary>
        public List<int> ParentIds { get; set; } = new List<int>();

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<MenusResponseDto> Children { get; set; }
    }
}
